#ifndef _FUNC_H
#define _FUNC_H

/*
 * function in this file is common with maihong's definition
 */

#ifndef __min
#define __max(a, b)             ((a) > (b) ? (a) : (b))
#define __min(a, b)             ((a) < (b) ? (a) : (b))
#endif

void GetCmdString(char *sc, int cmd, int a0h1);
void GetCodeString(char *sc, ushort code);
void GetYarnString(char *sc, ushort yarn, int exchange);
void GetRockString(char *sc, int drt, int needle, int flag);
/*
 *
 */
void GetCntInfo(void *p, ushort flw_line);
/*
 *
 */
void GetOptInfo(OPT_FUN *popt);

/*
 *
 */
void Truncate(char *out, char *in, uint len);
/*
 *
 */
int HasUsb();
/*
 * 去掉字符串中的空格
 */
void Trim(char *pStr);

#endif
